type
  linkedList*[T] = ref object
    data* : T
    next*: linkedList[T]

var head:linkedList[string]

new head
head.data="hello"

new head.next
head.next.data="world"

var p=head
while p!=nil:
  echo p.data
  p=p.next
